#include <iostream>
#include <vector>

using namespace std;

int main() {
  vector<int> grades{42, 65, 95, 100, 39, 67, 95, 76, 88, 76, 83, 92, 76, 93};
  for (auto grade : grades) {
    string result =
        grade < 60
            ? "fail"
            : (grade < 75 ? "low pass" : (grade < 90 ? "pass" : "high pass"));
    cout << result << endl;

    if (grade < 60) {
      cout << "fail" << endl;
    } else if (grade < 75) {
      cout << "low pass" << endl;
    } else if (grade < 90) {
      cout << "pass" << endl;
    } else {
      cout << "high pass" << endl;
    }
    cout << endl;
  }
  return 0;
}